package com.smalljj.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.smalljj.bean.Friend;
import com.smalljj.dao.FriendDao;
import com.smalljj.service.FriendService;

public class FriendServiceImpl implements FriendService {

	@Autowired
	private FriendDao friendDao;

	@Override
	public List<Map<String,Object>> getFriendList(String userId) throws Exception {
		return friendDao.getFriendList(userId);
	}

	@Override
	public Friend getFriend(String auser, String buser) throws Exception {
		return friendDao.getFriend(auser , buser);
	}

	@Override
	public boolean insert(Friend friend) throws Exception {
		return friendDao.insert(friend);
	}

	@Override
	public boolean delete(Friend friend) throws Exception {
		return friendDao.delete(friend);
	}

	@Override
	public boolean update(Friend friend) throws Exception {
		return friendDao.update(friend);
	}
	
}
